package cn.edu.zucc.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

import java.util.Date;
import java.util.List;
import java.io.Serializable;
import javax.persistence.*;

/**
 * @description stu
 * @author zhengkai.blog.csdn.net
 * @date 2022-03-10
 */
@Entity
@Builder
@AllArgsConstructor
@Data
@Table(name="stu")
//@Fetch(value =FetchType.EAGER)
//@Fetch(value = FetchMode.)
public class Stu implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * name
     */
    @Column(name="name")
    private String name;

    /**
     * stu_num
     */
    @Column(name="stu_num")
    private String stuNum;

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    /**
     * sex
     */
    @Column(name="sex")
    private String sex;

    /**
     * id_num
     */
    @Column(name="id_num")
    private String idNum;

    /**
     * email
     */
    @Column(name="email")
    private String email;

    public Stu() {
    }

}
